<?php /* Smarty version 2.6.26, created on 2012-05-12 14:39:47
         compiled from blocks%5Ccategory_level_link.tpl */ ?>
<!-- category level link -->

<?php if ($this->_tpl_vars['category']['Type']): ?>
	<?php $this->assign('cat_type', $this->_tpl_vars['category']['Type']); ?>
<?php else: ?>
	<?php $this->assign('cat_type', $this->_tpl_vars['section']['Type']); ?>
<?php endif; ?>

<?php if ($this->_tpl_vars['categories']): ?>
	<ul <?php if ($this->_tpl_vars['first']): ?>class="first"<?php endif; ?> id="tree_area_<?php if ($this->_tpl_vars['category']['ID']): ?><?php echo $this->_tpl_vars['category']['ID']; ?>
<?php else: ?><?php echo $this->_tpl_vars['section']['ID']; ?>
<?php endif; ?>">
	<?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['catF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['catF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['cat']):
        $this->_foreach['catF']['iteration']++;
?>
		<?php if (! empty ( $this->_tpl_vars['cat']['Sub_cat'] ) || ( $this->_tpl_vars['cat']['Add'] == '1' && $this->_tpl_vars['listing_types'][$this->_tpl_vars['cat_type']]['Cat_custom_adding'] )): ?>
			<?php $this->assign('sub_leval', true); ?>
		<?php else: ?>
			<?php $this->assign('sub_leval', false); ?>
		<?php endif; ?>
			
		<li id="tree_cat_<?php echo $this->_tpl_vars['cat']['ID']; ?>
" <?php if ($this->_tpl_vars['cat']['Lock']): ?>class="locked"<?php endif; ?>>
			<img <?php if (! $this->_tpl_vars['sub_leval']): ?>class="no_child"<?php endif; ?> src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" alt="" />
			<a title="<?php echo $this->_tpl_vars['lang']['add_listing_to']; ?>
 <?php echo $this->_tpl_vars['cat']['name']; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
index.php?controller=<?php echo $_GET['controller']; ?>
&amp;action=add&amp;category=<?php echo $this->_tpl_vars['cat']['ID']; ?>
"><?php echo $this->_tpl_vars['cat']['name']; ?>
</a>
			<span class="tree_loader"></span>
		</li>
	<?php endforeach; endif; unset($_from); ?>
	</ul>
<?php endif; ?>

<!-- category level link end -->